package com.example.test;

public class Line {  
  
    public static String s = getString();  
  
    static {  
    	System.out.println("静态代码块执行：loading line");  
    } 
    
    private static String getString() {  
        System.out.println("给静态变量赋值的静态方法执行：loading line");  
        return "ss";  
    }  
    
    public static void test() {  
        System.out.println("普通静态方法执行：loading line");  
    }  
  
    public Line() {  
        System.out.println("构造方法执行：loading line");  
    }  
  
    {  
        System.out.println("构造代码块执行");  
    }  
}  
